#ifndef _TTY_H_
#define _TTY_H_

#include <types.h>

struct tty_device;

int tty_subsystem_setup (void);
int tty_subsystem_cleanup (void);

int tty_create (__u32 device_instance,
		      int (*write_func) (char c),
		      struct tty_device **tty_out);
int tty_remove (struct tty_device *tty);

/**
 * @note Function called without synchronization
 */
void tty_add_chars (struct tty_device *t, const char *s);

#endif
